package com.huiquan.analysis.dao;

import java.util.Map;

import javax.annotation.Resource;

import org.springframework.stereotype.Repository;

import com.ibatis.sqlmap.client.SqlMapClient;

@Repository
public class AnalysisVocabularyTempDao extends BaseDao {
	
	@Resource(name = "sqlMapClient")
	private SqlMapClient sqlMapClient;

	public static final String space = "ANALYSIS_VOCABULARY_TEMP.";

	public void excuteSplit(Map<String, Object> param) {
		long startTime = System.currentTimeMillis();
		this.update(space + "EXCUTE_SPLIT", param, sqlMapClient);
		logger.info("【Notice】 excute split cost [{}]ms.", System.currentTimeMillis() - startTime);
	}

	public void excuteMerge(Map<String, Object> param) {
		long startTime = System.currentTimeMillis();
		this.object(space + "EXCUTE_MERGE", param, sqlMapClient);
		logger.info("【Notice】 excute merge cost [{}]ms.", System.currentTimeMillis() - startTime);
	}

	public void excuteUpdate(Map<String, Object> param) {
		long startTime = System.currentTimeMillis();
		this.update(space + "EXCUTE_UPDATE", param, sqlMapClient);
		logger.info("【Notice】 excute update cost [{}]ms.", System.currentTimeMillis() - startTime);
	}
}
